package com.factory._04single;

/**
 * 单例模式
 *
 * @author Qinye
 * @date 2023/8/11 21:31
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("懒汉式单例： "+ (LazySingleTon.getInstance() == LazySingleTon.getInstance()));
        System.out.println("饿汉式单例： "+ (EagerSingleton.getInstance() == EagerSingleton.getInstance()));
    }
}
